package SpringDemo.Base.Controller;

import SpringDemo.Base.Service.UserService;
import SpringDemo.IOC.com.junjie.framework.context.ApplicationContext;
import SpringDemo.IOC.com.junjie.framework.context.support.ClassPathXmlApplicationContext;


public class UserController {

    public static void main(String[] args) throws Exception {

        ApplicationContext context = new ClassPathXmlApplicationContext("SpringApplicationContext.xml");

        UserService userService = (UserService) context.getBean("userService");

        userService.addUser();
    }
}
